package com.yangwp.doutu.enums;

public enum  RespEnum {
    OK(0, "成功"),
    PARAM_ERROR(1, "参数错误"),
    MISSING_PARAM(2, "缺少参数"),
    SERVER_FAIL(3, "服务器错误");

    private int code;
    private String msg;

    RespEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
